/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Entidades;

import java.util.Comparator;

/**
 *
 * @author Ian Rocha
 */
public class ComparatorNoGrau implements Comparator<No>  {

    public int compare(No o1, No o2) {
       
        if(o1.getGrau()<o2.getGrau()){
            return -1;
        }
        else if(o1.getGrau()>o2.getGrau()){
            return 1;
        }
        return 0;
    }

}
